import { ProcessStageCodeEnum } from './myModel';
/**
 * 类型
 */
export const FlowTypeMap: Record<ProcessStageCodeEnum, Record<string, string>> = {
  // 供应链阶段
  SUPPLY_CHAIN_STAGE: {
    ITEM: '零部件数',
    ENERGY_CONSUME: '能源燃料',
    LOGISTICS: '原材料运输',
    DISCHARGE: '过程排放',
    ABANDON: '废弃处置'
  },
  // 物流运输阶段
  TRANSFER_STAGE: {
    TRANSFER_PROCESS: '运输情景',
    TRANSFER: '运输线路',
    TRANSFER_METHOD: '运输方式',
    FUEL_TYPE: '燃料类型'
  },
  // 生产阶段
  MANUFACTURE_STAGE: {
    MANUFACTURE_PROCESS: '生产工序',
    ENERGY_CONSUME: '能源燃料',
    DISCHARGE: '过程排放',
    LOGISTICS: '厂内运输',
    ABANDON: '废弃处置'
  },
  // 使用阶段
  USE_STAGE: {
    USE_PROCESS: '使用情景',
    ENERGY_CONSUME: '能源燃料',
    PART: '部件更换',
    PART_REPLACE: '部件更换',
    DISCHARGE: '逸散排放'
  },
  // 回收阶段
  RECYCLE_STAGE: {
    RECYCLE_PROCESS: '处置情景',
    LOGISTICS: '物流运输',
    ENERGY_CONSUME: '能源燃料',
    ABANDON: '废弃处置',
    DISCHARGE: '逸散排放'
  }
};

/**
 * 类型的icon
 */
export const FlowTypeIconMap: Record<string, string> = {
  PART: 'c-xian-lingbujian',
  PART_REPLACE: 'c-xian-lingbujian',
  ITEM: 'c-xian-lingbujian',
  ABANDON: 'c-xian-feiqichuzhi',
  ENERGY_CONSUME: 'c-xian-nengyuanranliao',
  LOGISTICS: 'c-xian-yuancailiaoyunshu',
  DISCHARGE: 'c-xian-guochengpaifang',
  TRANSFER_PROCESS: 'c-xian-yunshuchangjing',
  TRANSFER: 'c-xian-yunshuxianlu',
  TRANSFER_METHOD: 'c-xian-yunshufangshi',
  FUEL_TYPE: 'c-xian-ranliaoleixing',
  MANUFACTURE_PROCESS: 'c-xian-shengchangongxu',
  USE_PROCESS: 'c-xian-shiyongchangjing',
  RECYCLE_PROCESS: 'c-xian-chuzhiqingjing'
};
